import request from "/@/utils/request"
// 获取表格数据
export function fetchList(query) {
    return request({
        url: '/om/omrepairmodel/page',
        method: 'get',
        params: query
    })
}
// 新增
export function addObj(obj) {
    return request({
        url: '/om/omrepairmodel',
        method: 'post',
        data: obj
    })
}
// 删除
export function delObj(id) {
    return request({
        url: '/om/omrepairmodel/' + id,
        method: 'delete'
    })
}
// 修改
export function putObj(obj) {
    return request({
        url: '/om/omrepairmodel',
        method: 'put',
        data: obj
    })
}
//批量删除
export function delAllObj(obj) {
    return request({
        url: '/om/omrepairmodel/removeByIds',
        method: 'delete',
        data: obj
    })
}
// 获取设备型号
export function getDevList() {
    return request({
        url: '/admin/accessProduct/page?current=1&size=999&descs=&ascs=',
        method: 'get',
    })
}